﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.Entity;
using HRM.DAL;
using System.Data;

namespace HRM.BIZ
{
    public class EmployeeLeaveBiz: BaseBiz
    {
        public EmployeeLeave Add(EmployeeLeave item)
        {
            return new EmployeeLeaveDAL().Add(item);
        }

        public EmployeeLeave Update(EmployeeLeave item)
        {
            return new EmployeeLeaveDAL().Update(item);
        }

        public void Delete(int ID)
        {
            new EmployeeLeaveDAL().Delete(ID);
        }

        public List<EmployeeLeave> GetByEmpID(int ID)
        {
            return new EmployeeLeaveDAL().GetByEmpID(ID);                       
        }

        public EmployeeLeave GetByID(int ID)
        {
            return new EmployeeLeaveDAL().GetByID(ID);
        }

        public DataSet GetEmployeeLeaves(int empID)
        {
            return new EmployeeLeaveDAL().GetEmployeeLeaves(empID);
        }
    }
}
